package com.xq.sqlSession;

import com.xq.pojo.Configuration;
import com.xq.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

    public <E> List<E> findAll(Configuration configuration, MappedStatement mappedStatement, Object... params) throws SQLException, Exception;

    public <T> T selectOne(Configuration configuration, MappedStatement mappedStatement, Object... params);

    public int doUpdate(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
}
